<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-for</title>
    <script src="js/vue.js"></script>
</head>
<body>

<div id="app">
    <div v-for="addr in addrs">
        {{addr}} <br>
    </div>

    <div v-for="(addr,i) in addrs">
        {{i+1}} -- {{addr}} <br>
    </div>
</div>

<script>
    new Vue({
        el:"#app",
        data(){
            return {
                addrs:["北京","上海","西安"]
            }
        },
        methods:{

        }
    })

</script>

</body>
</html>